Skip to content

Scaffold AI Image Studio monorepo with mock job API, Next.js UI, and worker#1

Open
shensz2017 wants to merge 1 commit into
mainfrom
codex/build-ai-image-studio-project
Open

Scaffold AI Image Studio monorepo with mock job API, Next.js UI, and worker#1
shensz2017 wants to merge 1 commit into
mainfrom
codex/build-ai-image-studio-project

Conversation

@shensz2017

Copy link
Copy Markdown
Owner

Motivation

  • Provide a minimal monorepo scaffold for an AI Image Studio MVP to enable fast local development and integration testing.
  • Offer a mockable generation backend and in-memory job queue so the web UI can exercise generation, progress, and cancel flows without a real model provider.
  • Deliver a simple Next.js workbench UI that demonstrates generation controls, queue/status polling and result previews.
  • Include a lightweight worker and documentation to illustrate how the pieces run together locally.

Description

  • Add root monorepo configuration and workspace layout, plus a .gitignore and per-app package.json files to host apps/api, apps/web, and apps/worker.
  • Implement a mock API in apps/api with an express server, JobStore (in-memory), JobService (simulated progress + outputs), a mock provider in apps/api/src/providers/mock.ts, and OpenAPI docs served at /docs.
  • Ship a Next.js web UI in apps/web that posts generation jobs, polls job status, displays queue/history, and includes styling in apps/web/styles/globals.css.
  • Add a simple worker poller in apps/worker and a unit test apps/api/tests/job-store.test.ts, along with docs/INSTALL.md describing local install and run commands.

Testing

  • Attempted npm install for the workspace, but the install failed due to a 403 Forbidden error from the npm registry so dependencies were not installed.
  • Because npm install failed the automated test runner (vitest) was not executed and no tests were run.
  • A unit test is provided at apps/api/tests/job-store.test.ts, ready to run once dependencies are available.
  • Local run instructions are documented in docs/INSTALL.md and recommend npm run dev:api and npm run dev:web to start the stack.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant